package com.boe.hbd.server.processor;

import javax.servlet.http.HttpServletRequest;

public abstract class BaseProcessor implements Processor {
	static final String SUCCESS = "success";
	static final String EXISTED = "existed";
	static final String FAILED = "failed";
	static final String NEAR = "near";
	static final String ADD = "add";
	static final String FIND = "find";
	static final String QUERY = "query";
	static final int MAXNEAR = 20;

	public String process(String[] args, HttpServletRequest req) {
		String result = deal(args, req);
		return result == null ? "" : result;
	}

	abstract String deal(String[] args, HttpServletRequest req);
}
